<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="__CSS__/style_forum.css">
	<link rel="stylesheet" href="__CSS__/style_post.css">
	<link rel="stylesheet" href="__CSS__/reset.css">
	<title>上传头像 - ThinkPHP</title>
	<script type="text/javascript" src="__JS__/jquery-3.4.1.min.js"></script>
	<script type="text/javascript" src="__JS__/loadinghtml.js"></script>
	<script type="text/javascript" src="__JS__/DropDown.js"></script>
</head>
<body>
	<div id="header" class="top">
		<div id="hd-main">
			<a id="alink" href="{:url('index/index')}" title="返回首页"></a>
			<ul id="main-nav">
				<li><a href="{:url('index/index')}">首页</a></li>
				<li id="triggerdown">
					<a href="{:url('index/view',['s_id'=>0,'ot'=>'m_createat'])}">论坛</a>
					<ul id="dropdown">
						<li><a href="{:url('index/view',['s_id'=>0,'ot'=>'m_createat'])}">全部</a></li>
						{volist name="sec" id="secRow"}
						<li><a href="{:url('index/view',['s_id'=>$secRow.s_id,'ot'=>'m_createat'])}">{$secRow.s_name}</a></li>
						{/volist}
					</ul>
				</li>
				<li><a href="{:url('index/pa')}">修改密码</a></li>
				<li style="background-color: #656565"><a href="{:url('index/me')}">上传头像</a></li>
				<li><a href="{:url('user/login')}">登录</a></li>
				<li><a href="{:url('user/reg')}">注册</a></li>
				<li><a href="{:url('index/logout')}">退出</a></li>
				<li><a href="{:url('user/contact')}">联系我们</a></li>
			</ul>
			<div id="header-bar">
				<h3>欢迎你，{:session('user')}</h3>
				<div id="userloginmes">
					<a href="" id="unlogin">
						<img src="__POT__/{:session('uimg')}" width="24px" height="24px">
					</a>
					<ul>
						<li><a href="{:url('index/collect')}">我的收藏</a></li>
						<li><a href="{:url('index/logout')}">退出</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div id="main">
		<form id="think-form" action="{:url('index/upMe')}" enctype="multipart/form-data" method="post">
			<div id="main-hd">
				<div class="avatar"><img src="__POT__/{:session('uimg')}" width="44px" height="44px"></div>
				<div id="hd-info">
					<strong>{:session('user')}</strong>
					<span id="time">{:date("Y-m-d H:i")}</span>
				</div>				
				<span id="hd-title">用户头像上传</span>
			</div>
			<table>
				<tr>
					<th>选择头像</th>
					<td><input type="file" name="uimg" id="uimg" accept=".gif,.jpg,.png"></td>
				</tr>
				<tr><th>&nbsp;</th><td><input type="submit" id="submit"></td></tr>
			</table>
		</form>
		<div id="prompt">
			<div id="ptitle">
				<h4>上传限制</h4>
			</div>
			<ul>
				<li>格式：仅支持.gif、.jpg、和.png格式；</li>
				<li>大小：不超过100KB；</li>
			</ul>
		</div>
	</div>
	<div id="footer"></div>
</body>
</html>